package com.base.system;

import com.base.system.base.init.SystemFirstInit;
import com.base.system.config.SpringContextUtil;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.data.jpa.repository.config.EnableJpaRepositories;
import org.springframework.security.config.annotation.method.configuration.EnableGlobalMethodSecurity;

@SpringBootApplication
@MapperScan("com.base.system.mybatisPlus")
//@EnableJpaRepositories("com.base.system.jpa")
@EnableGlobalMethodSecurity(prePostEnabled=true)
public class SystemApplication {

    public static void main(String[] args) {
        SpringApplication springApplication = new SpringApplication(SystemApplication.class);
        springApplication.addInitializers(new SystemFirstInit());
        ApplicationContext ctx = springApplication.run(args);
    }

}
